Systems and methods for trend detection using frequency analysis

ABSTRACT

Systems and methods for trend detection using frequency analysis in accordance with embodiments of the invention are disclosed. In one embodiment of the invention, trend detection includes generating a discrete time sequence of word counts for a target word using a trend detection device, performing frequency analysis of the discrete time sequence of word counts to determine contributions of frequency components within different frequency ranges to the discrete time sequence of word counts using the trend detection device, and detecting that the target word is a trending keyword based upon at least the frequency analysis of the discrete time sequence of word counts for the target word using the trend detection device.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Patent Application No. 61/515,951, filed on Aug. 7, 2011, the disclosure of which is hereby incorporated by reference in its entirety.

FIELD OF THE INVENTION

The present invention generally relates to detecting trends and more specifically to detecting trends in a stream of words using frequency analysis.

BACKGROUND

The Internet is an influential mechanism for disseminating information. News sites, from global in scale to local, are popular destinations for people surfing the Internet. With the advent of blogs, forums, and social networking sites, including the Facebook service provided by Facebook, Inc. of Menlo Park, Calif. and the Twitter service provided by Twitter, Inc. of San Francisco, Calif., news and information is being created by both professional news outlets and from ordinary people, leading to an exponential growth in the amount of news and information available on the Internet.

The Fourier transform is a mathematical transform that expresses a mathematical function of time as a function of frequency. The term Fourier transform is commonly used to refer to both the transform operation and to the complex-valued function it produces. A discrete Fourier transform (DFT) is a discrete transformation of one function (the input function) into the frequency domain representation of the input function.

SUMMARY OF THE INVENTION

Systems and methods for trend detection using frequency analysis in accordance with embodiments of the invention are disclosed. In one embodiment of the invention, trend detection includes generating a discrete time sequence of word counts for a target word using a trend detection device, performing frequency analysis of the discrete time sequence of word counts to determine contributions of frequency components within different frequency ranges to the discrete time sequence of word counts using the trend detection device, and detecting that the target word is a trending keyword based upon at least the frequency analysis of the discrete time sequence of word counts for the target word using the trend detection device.

In another embodiment of the invention, trend detection includes performing frequency analysis including applying a discrete Fourier transform to the discrete time sequence of word counts, and the different frequency ranges comprise a low frequency range, a medium frequency range, and a high frequency range.

In an additional embodiment of the invention, performing frequency analysis further includes comparing the contributions of frequency components in the high frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts.

In yet another additional embodiment of the invention, comparing the contributions of frequency components in the high frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts includes comparing the ratio of energy of the frequency components in the high frequency and low frequency ranges to a first threshold value.

In still another additional embodiment of the invention, the first threshold is determined based upon a ratio of energy determined using a discrete time sequence of word counts for normal usage of the target word.

In yet still another additional embodiment of the invention, the first threshold is adjusted using a human training feedback loop.

In yet another embodiment of the invention, performing frequency analysis further includes comparing the contributions of frequency components in the middle frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts.

In still another embodiment of the invention, performing frequency analysis further comprises comparing the contributions of frequency components in the middle frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts further includes comparing the ratio of energy of the frequency components in the medium and low frequency ranges to a second threshold value.

In yet still another embodiment of the invention, trend detection further includes receiving a set of words including a plurality of occurrences of the target word using the trend detection device.

In yet another additional embodiment of the invention, the set of words is a stream of words.

In still another additional embodiment of the invention, trend detection further includes assigning a time stamp to at least one occurrence of target word in the set of words using the trend detection device.

In yet still another additional embodiment of the invention, trend detection further includes discarding stop words from the set of words using the trend detection device.

In yet another embodiment of the invention, trend detection further includes storing the set of words in a database, where the database associates metadata including a time with each occurrence of the target word.

In still another embodiment of the invention, generating a discrete time sequence of word counts for the target word using a trend detection device comprises using the time associated with each occurrence of the target word to determine the number of occurrences of the target word during discrete time intervals.

In yet still another embodiment of the invention, trend detection further includes detecting a trending phrase including the target word using the trend detection device, when the trend detection device detects that the target word is a trending keyword.

In yet another additional embodiment of the invention, detecting trending phrases further comprises clustering the target keyword with at least one additional trending keyword using the trend detection device.

In still another additional embodiment of the invention, trend detection further includes receiving a set of words including a plurality of occurrences of the target word using the trend detection device, where the set of words includes groups of words and at least one group of words includes the target word, wherein detecting a trending phrase further comprises adding at least one additional word to the target word to create a target phrase, where the at least one additional word is in a group of words that includes the target word.

In yet still another additional embodiment of the invention, performing frequency analysis includes generating a 3-dimensional spectrogram using the discrete time sequence of word counts.

In yet still another additional embodiment of the invention, trend detection further includes targeting advertising based on at least one keyword including at least the target word using an advertising targeting server system, when the trend detection device detects that the target word is a trending keyword.

Yet another embodiment of the invention includes a trend detection device, including word data storage configured to store a stream of words, application storage configured to store a trend detection application, and a processor, wherein the trend detection application configures the processor to generate a discrete time sequence of word counts for a target word, perform frequency analysis of a discrete time sequence of word counts to determine contributions of frequency components within different frequency ranges to the discrete time sequence of word counts, and detect that a target word is a trending keyword based upon at least the frequency analysis of a discrete time sequence of word counts for the target word.

In yet another additional embodiment of the invention, the trend detection application further configures the processor to perform frequency analysis by applying a discrete Fourier transform to a discrete time sequence of word counts and the different frequency ranges comprise a low frequency range, a middle frequency range, and a high frequency range.

In still another additional embodiment of the invention, the trend detection application further configures the processor to detect a trending phrase including a target word.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 is a network diagram showing a trend detection system in accordance with an embodiment of the invention.

FIG. 2 is a system diagram of a trend detection device in accordance with an embodiment of the invention.

FIG. 3 is a flow chart illustrating a process for performing trend detection using frequency analysis in accordance with an embodiment of the invention.

FIG. 4A is a graph that conceptually illustrates the mentions over time of a word used with normal usage in accordance with an embodiment of the invention.

FIG. 4B is a graph that conceptually illustrates the frequency spectrum of a word used with normal usage in accordance with an embodiment of the invention.

FIG. 5A is a graph that conceptually illustrates the mentions over time of a word used in a new trend in accordance with an embodiment of the invention.

FIG. 5B is a graph that conceptually illustrates the frequency spectrum of a word used in a new trend in accordance with an embodiment of the invention.

FIG. 6A is a graph that conceptually illustrates the mentions over time of a word used in a recurring trend in accordance with an embodiment of the invention.

FIG. 6B is a graph that conceptually illustrates the frequency spectrum of a word used in a recurring trend in accordance with an embodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

Turning now to the drawings, systems and methods for trend detection using frequency analysis in accordance with embodiments of the invention are illustrated. A large amount of news and other information, such as tweets and posts on Facebook, is available on the Internet. With the large amount of news and information available, it can be important to not only to measure the rise and fall in the conversation around a trend, but to detect new trends. A low latency in detecting new trends can be beneficial in detecting ‘breaking’ news stories or other information.

Trend detection systems in accordance with embodiments of the invention create time varying signals using a stream of words taken from word sources. Word sources include, but are not limited to, news stories, messages on social networking services, and other available information. A stream of words often contains groups of words, such as sentences and/or sentence fragments, taken from the word sources. By generating signals in the frequency domain using the time varying signals and/or the stream of words, the frequency spectrum of time varying signals can be analyzed to detect trends indicated by the frequency spectrum of specific words in the stream of words. The analysis of a stream of words includes, but is not limited to, determining normal word usage, words used in new trends, and words used in recurring trends. In many embodiments, a trend detection system breaks the frequency spectrum of a signal into a low frequency range, a medium frequency range, and a high frequency range; and analyzes words by comparing the amount of energy present in the signal in each frequency range. Trends can be detected by looking at the change in the energy present in the different frequency ranges over time. The words that appear in trends can be referred to as trending keywords. Signals for trending keywords may also be analyzed to detect trends which describe the same topic using varying terms and to detect independent but related trends.

Once trends involving trending keywords have been detected, the trending keywords in the trends may be utilized in a variety of systems. In several embodiments, the keywords may be utilized in advertising campaigns. Systems and methods for generating advertising campaigns using advertising targeting information are disclosed in U.S. patent application Ser. No. 13/331,950, entitled “Systems and Methods for Automatically Generating Campaigns using Advertising Targeting Information based upon Affinity Information Obtained from an Online Social Network” to Benyamin et al., the entirety of which is incorporated by reference.

Systems and methods for trend detection using frequency analysis of streams of words in accordance with embodiments of the invention are discussed further below.

Trend Detection Systems

A trend detection system in accordance with an embodiment of the invention is illustrated in FIG. 1. The trend detection system 100 includes at least one information server system 110 configured to receive news, social networking updates, and other information from a plurality of sources, which are in communication with the information server system 110 via a network 120. These sources include, but are not limited to, cellular telephones 130, tablets 132, and personal computers 134. In many embodiments, the network 120 is the Internet. In several embodiments, the information server system 110 includes a plurality of sources of information distributed across a plurality of servers. In a number of embodiments, the information server system 110 is configured to aggregate information published across a plurality of sources of information.

The trend detection system 100 includes a trend detection device 112 configured to receive one or more streams of words from at least one information server system 110. Streams of words include, but are not limited to, news stories, tweets, posts on social networking sites, and blog entries. The words contained in the streams of words are organized as individual words, sentences, sentence fragments, and/or other groupings of words. In many embodiments, the words contained in the stream of words have metadata associated with the words; this metadata includes, but is not limited to, a timestamp of when the words were created, published, and/or received by the trend detection device 112. The trend detection device 112 is configured to determine one or more signals using words contained in the received streams of words. In many embodiments, the trend detection device generates discrete time signal representing counts of the number of occurrences of the word during discrete time intervals. In several embodiments, a signal is also generated in the frequency domain. In a number of embodiments, the signal represents frequency components of the discrete time signal. The trend detection device is further configured to determine trending keywords indicative of trends, including new trends and/or recurring trends, using frequency analysis of the number of occurrences of specific keywords during discrete time intervals. The trend detection device 112 utilizes the determined trends and the one or more signals to detect trending phrases containing words appearing near the trending keywords. Additionally, the trend detection device 112 is configured to identify relationships between trends using the one or more signals. In a number of embodiments, the trend detection device 112 is configured to determine trends surrounding a received keyword or keywords. In many embodiments, the trend detection device 112 and the information server system 110 are a single sever. In several embodiments, the trend detection device 112 and the information server system 110 are separate servers communicating via the network 120.

In accordance with embodiments of the invention, the trend detection system 110 includes at least one advertising targeting server system 114. The advertising targeting server system 114 is configured to generate a listing of targeting keywords that will optimally target an offer to members of the online social network based upon the affinity information and an advertising strategy. The advertising targeting server system 114 is configured to utilize the trending keywords received from the trend detection device in determining the listing of targeting keywords. In several embodiments, at least one advertising targeting server system 114 is configured to communicate with the information server system 110 and/or the trend detection device 112 using the network 120. In a number of embodiments, the information server system 110, the trend detection device 112, and/or the advertising targeting server system 114 are implemented using a single server or a cluster of servers.

A trend detection system in accordance with an embodiment of the invention is described above; however, a variety of trend detection systems may be utilized in accordance with embodiments of the invention. Systems and methods for trend detection using frequency analysis are discussed below.

Trend Detection Devices

A variety of devices may be configured to detect trends in a stream of words using frequency analysis. Many devices perform a coarse trend detection by analyzing changes in the occurrences of one or more words over discrete periods of time. Additional information can be obtained for use in trend detection by analyzing the frequency components of the sequence of word “counts” (i.e. the sequence of the number of word occurrences in successive discrete time intervals). A diagram of a trend detection device configured to generate signals indicative of the frequency components of a discrete time sequence of word counts and perform trend detection using the frequency component information in accordance with an embodiment of the invention is illustrated in FIG. 2. The device 200 contains a processor 210 configured to generate one or more signals using words contained in a stream of words. In many embodiments, a signal generated for a word is a signal in the time domain. In a number of embodiments, the signal is a discrete time signal including a sequence of counts of how often the word is mentioned during discrete intervals of time. In several embodiments, a signal generated for a word is a signal in the frequency domain, including information concerning the frequency components of the signal generated for the word in the time domain. In a number of embodiments, the signal indicates the contribution of different portions of the frequency spectrum to the signal generated for the word in the time domain. In many embodiments, a signal is generated by transforming a signal in the time domain into a signal in the frequency domain. In several embodiments, the processor 210 is configured to generate one or more signals from the stream of words using a discrete Fourier transform. In a number of embodiments, the processor 210 is configured to generate 3-dimensional spectrograms using the one or more signals and/or the stream of words. The processor 210 is further configured to determine trending keywords using the one or more signals and to detect trending phrases using the trending keywords. In many embodiments, the processor 210 is configured to analyze a signal to identify normal word usage, new trends, and recurring trends depending on the frequency information present in the signal.

In many embodiments, the processor 210 is configured to store the stream of words, the generated signals, trending keywords, and/or other data using a storage device 216. In a number of embodiments, the stream of words is stored in a database that can also include metadata describing occurrences of individual words including (but not limited to) the time of the occurrence and/or links to other words indicative of a phrase containing the occurrence of the word. In several embodiments, the processor 210 is configured to send and/or receive information, including the stream of words, using a network interface 218. In a number of embodiments, the processor 210 is configured to display information, including the stream of words, generated signals, identified keywords, and/or other data using a display 212. In many embodiments, the processor 212 and the display 212 are connected to a user interface 214 configured to allow interaction with the displayed information. In several embodiments, the user interface 214 enables a user to select one or more keywords and analyze trends related to the one or more keywords.

Although a specific trend detection device is described above, any device capable of generating signals from a stream of words and performing frequency analysis using the generated signals may be used in accordance with embodiments of the invention. Methods for trend detection using frequency analysis with embodiments of the invention are discussed below.

Trend Detection using Frequency Analysis

Trends occurring in a stream of words can be efficiently detected by converting the stream of words into a set of signals and using the generated signals to detect trends. Trend detection devices in accordance with embodiments of the invention are configured to generate signals in the frequency domain and to detect trending keywords based upon the frequency components of the signals. A flow chart illustrating a process for performing trend detection based upon the frequency components of the signals in accordance with an embodiment of the invention is shown in FIG. 3. The process 300 includes counting (310) the number of occurrences of each word in a stream of words during discrete units of time. A signal is calculated (312) for each word that indicates the frequency components of the discrete time sequence of word counts. Trending keywords are determined (314) based upon the frequency components of the calculated (312) signals. In several embodiments, trending phrases are detected (316).

In many embodiments, counting (310) the number of occurrences of each word during discrete time intervals includes filtering out common stop words. In a number of embodiments, the source of the counted (310) words includes headlines and/or articles received from news sources. In several embodiments, the source of the counted (310) words includes messages posted using social networking services, such as Facebook and Twitter. In many embodiments, the source of the counted (310) words includes sources which contain a supplied keyword. In several embodiments, the unit of time is a day. In a number of embodiments, the unit of time is an arbitrary time period.

Calculating Signals with Frequency Information for a Word

In several embodiments, calculating (312) a signal for a word that indicates the frequency components of a discrete time sequence of word counts involves calculating a DFT for that word with respect to the unit of time. A DFT of a word contains frequency information for the word; the frequency information for the word can be analyzed in various frequency ranges. By analyzing the frequency information present across the various frequency ranges in the calculated (312) DFT, a variety of conclusions about the usage of a word may be determined. Three different usages of a word as analyzed using the frequency spectrum calculated (312) for a word in accordance with embodiments of the invention are illustrated in FIGS. 4A, 4B, 5A, 5B, 6A, and 6B.

Examples of Signals Calculated for a Word

An example of a word with normal usage is conceptually illustrated in FIG. 4A. The number of occurrences of a word with respect to time 400 is plotted 410. An example of a signal in the frequency domain generated using a DFT for the word 400 is conceptually illustrated in FIG. 4B. The signal 420 illustrates the frequency components of a discrete time sequence of word counts 400. The signal 420 can be divided into three frequency regions: a low frequency region 422, a medium frequency region 424, and a high frequency region 426. A word 400 that occurs with normal usage shows a high amount of energy in the low frequency region 422 (i.e. strong contributions from frequency components in the low frequency region) and a low amount of energy in the medium frequency region 424 and the high frequency region 426. Most words which fall into normal parts of speech, such as “the” and “I,” are examples of a word 400.

An example of a word used in a new trend is conceptually illustrated in FIG. 5A. The number of occurrences of a word 500 with respect to time is plotted 510. An example of a signal in the frequency domain generated using a DFT for the word 500 is conceptually illustrated in FIG. 5B. The signal 520 illustrates the frequency components of a discrete time sequence of word counts 500. The signal 520 can be divided into three frequency regions: a low frequency region 522, a medium frequency region 524, and a high frequency region 526. A word 500 that occurs in a new trend shows a high amount of energy in the low frequency region 522, a low amount of energy in the medium frequency region 524, and a higher amount of energy in the high frequency region 526. This change in the frequency components of the discrete time sequence of word counts 500 indicates a rate of change of the use of the word corresponding to a new trend involving the word 500. Accordingly, trends can be detected by looking for the ratio (and/or sudden changes in the ratio) of high frequency components to low frequency components of the frequency spectrum of a discrete time sequence of word counts.

An example of a word used in a recurring trend is conceptually illustrated in FIG. 6A. The number of occurrences of a word 600 with respect to time is plotted 610. An example of a signal in the frequency domain generated using a DFT for the word 600 is conceptually illustrated in FIG. 6B. The signal 620 illustrates the frequency components of a discrete time sequence of word counts 600. The signal 620 can be divided into three frequency regions: a low frequency region 622, a medium frequency region 624, and a high frequency region 626. A word 600 that occurs in a recurring trend shows a high amount of energy in the low frequency region 622, a medium to high amount of energy in the medium frequency region 624, and a low amount of energy in the high frequency region 626. The presence of energy in the medium frequency region of the frequency spectrum of the discrete time sequence of word counts 600 indicates the word 600 is used in a trend, which reoccurs over time, rather than regularly as a word in normal usage. These reoccurring trends are often not part of any particular source of words; however, the reoccurring trends represent an underlying trend. An example of a reoccurring trend is a meme. Accordingly, recurring trends can be detected based on the ratio of medium frequency components to low frequency components in the frequency spectrum of a discrete time sequence of word counts 600 for a specific word.

Analyzing Words Using Signals with Frequency Information

Once a signal in the frequency domain has been calculated (312) for a word, frequency analysis may be performed using that signal to determine (314) if the word is a trending keyword. In a number of embodiments, the determined (314) trending keywords are words where the contributions of frequencies in the medium and/or high frequency ranges exceed a threshold value. In several embodiments, the determined (314) trending keywords are words with a ratio of high and/or medium frequency components to low frequency components exceeding a threshold value. In many embodiments, the determined (314) trending keywords are those words, which are new trend words and/or recurring trend words. A word can be considered a new trend word if:

$\frac{\int_{high}{F\ {\mathbb{d}f}}}{\int_{low}{F\ {\mathbb{d}f}}} > T_{new}$ a word can be considered a recurring trend word if:

$\frac{\int_{medium}{F\ {\mathbb{d}f}}}{\int_{low}{F\ {\mathbb{d}f}}} > T_{recurring}$ where F is the calculated (312) signal for a word in the stream of words; low, medium, and high are low, medium and high frequency ranges of F; and T_(new) and T_(recurring) are threshold values to determine if a word is a new trend word or a recurring trend word. In many embodiments, T_(new) and T_(recurring) are pre-determined. In several embodiments, T_(new) and T_(recurring) are dynamically determined based upon a baseline of normal usage of a word. In a number of embodiments, low, medium, high, T_(new), and T_(recurring) are adjusted using a human training feedback loop.

In many embodiments, a 3-dimensional spectrogram is calculated (312) as the signal for a word. In several embodiments, 3-dimensional spectrograms capture both time-varying and frequency-varying information. The various features of the 3-dimensional spectrogram may be utilized to determine (314) trending keywords. For example, a ridge present in a 3-dimensional spectrogram can indicate a sustained trend, whereas a hill or spike can represent a meme or other reoccurring trend. In a number of embodiments, a 3-dimensional spectrogram is calculated (312) using a plurality of DFTs.

Once trending words are determined (314), trending phrases can be detected (316) using the determined (314) trending words in accordance with embodiments of the invention. In a number of embodiments, trending phrases are detected (316) by looking at the words adjacent to a determined (314) trending word in the stream of words, which is the source of the determined (314) trending word. In many embodiments, words adjacent to a trending keyword are words contained in the same sentence, sentence fragment, and/or group of words as the trending keyword. In accordance with embodiments of the invention, words with similar calculated (312) signals tend to be part of similar and/or related trends. In many embodiments, detecting (316) trending phrases includes clustering words with similar calculated (312) signals. The clustered words are used to form the detected (316) trending phrases.

A specific method for performing trend detection using frequency analysis in accordance with an embodiment of the invention is described above; however, a variety of methods, including those methods with generate a signal in the frequency domain using a mathematical transformation which is not a discrete Fourier transform and those methods which utilize different frequency ranges to perform trend detection using frequency analysis, may be utilized in accordance with embodiments of the invention.

Although the present invention has been described in certain specific aspects, many additional modifications and variations would be apparent to those skilled in the art. It is therefore to be understood that the present invention may be practiced otherwise than specifically described without departing from the scope and spirit of the present invention. Thus, embodiments of the present invention should be considered in all respects as illustrative and not restrictive. Accordingly, the scope of the invention should be determined not by the embodiments illustrated, but by the appended claims and their equivalents. 

What is claimed is:
 1. A method for trend detection, comprising: generating a discrete time sequence of word counts for a target word using a trend detection device; performing frequency analysis of the discrete time sequence of word counts to determine contributions of frequency components within different frequency ranges, the different frequency ranges comprising a low frequency range, a medium frequency range, and a high frequency range, to the discrete time sequence of word counts using the trend detection device by: applying a discrete Fourier transform to the discrete time sequence of word counts; and comparing the contributions of frequency components in the high frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts; and detecting that the target word is a trending keyword based upon at least the frequency analysis of the discrete time sequence of word counts for the target word using the trend detection device.
 2. The method of claim 1, wherein comparing the contributions of frequency components in the high frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts comprises comparing the ratio of energy of the frequency components in the high frequency and low frequency ranges to a first threshold value.
 3. The method of claim 2, wherein the first threshold is determined based upon a ratio of energy determined using a discrete time sequence of word counts for normal usage of the target word.
 4. The method of claim 2, wherein the first threshold is adjusted using a human training feedback loop.
 5. The method of claim 1, wherein performing frequency analysis further comprises comparing the contributions of frequency components in the middle frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts.
 6. The method of claim 1, wherein performing frequency analysis further comprises comparing the contributions of frequency components in the middle frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts further comprises comparing the ratio of energy of the frequency components in the medium and low frequency ranges to a second threshold value.
 7. The method of claim 1, further comprising receiving a set of words including a plurality of occurrences of the target word using the trend detection device.
 8. The method of claim 7, wherein the set of words is a stream of words.
 9. The method of claim 7, further comprising assigning a time stamp to at least one occurrence of target word in the set of words using the trend detection device.
 10. The method of claim 7, further comprising discarding stop words from the set of words using the trend detection device.
 11. The method of claim 7, further comprising storing the set of words in a database, where the database associates metadata including a time with each occurrence of the target word.
 12. The method of claim 11, wherein generating a discrete time sequence of word counts for the target word using a trend detection device comprises using the time associated with each occurrence of the target word to determine the number of occurrences of the target word during discrete time intervals.
 13. The method of claim 1, further comprising detecting a trending phrase including the target word using the trend detection device, when the trend detection device detects that the target word is a trending keyword.
 14. The method of claim 13, wherein detecting trending phrases further comprises clustering the target keyword with at least one additional trending keyword using the trend detection device.
 15. The method of claim 13, further comprising: receiving a set of words including a plurality of occurrences of the target word using the trend detection device, where the set of words includes groups of words and at least one group of words includes the target word; wherein detecting a trending phrase further comprises adding at least one additional word to the target word to create a target phrase, where the at least one additional word is in a group of words that includes the target word.
 16. The method of claim 1, wherein performing frequency analysis comprises generating a 3-dimensional spectrogram using the discrete time sequence of word counts.
 17. The method of claim 1, further comprising targeting advertising based on at least one keyword including at least the target word using an advertising targeting server system, when the trend detection device detects that the target word is a trending keyword.
 18. A trend detection device, comprising: word data storage storing a stream of words; application storage storing a trend detection application; and a processor; wherein the trend detection application configures directs the processor to: generate a discrete time sequence of word counts for a target word; perform frequency analysis of a discrete time sequence of word counts to determine contributions of frequency components within different frequency ranges, the different frequency ranges comprising a low frequency range, a medium frequency range, and a high frequency range, to the discrete time sequence of word counts by: applying a discrete Fourier transform to the discrete time sequence of word counts; and comparing the contributions of frequency components in the high frequency range of the discrete time sequence of word counts to the contributions of frequency components in the low frequency range of the discrete time sequence of word counts; and detect that a target word is a trending keyword based upon at least the frequency analysis of a discrete time sequence of word counts for the target word.
 19. The trend detection device of claim 18, wherein the trend detection application further directs the processor to detect a trending phrase including a target word. 